import { Application } from "egg";

export default (app: Application) => {
  const { controller, router, middleware } = app;

  router.get("/cs", controller.home.cs);

  router.get("/", controller.home.index);

  router.get("/login", controller.home.login);

  router.get("/checkLogin", controller.home.checkLogin);

  router.all("/callback", middleware.callback(), controller.home.callback);
};
